package com.backend.system.beans.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 用户修改密码请求体
 *
 * @author backend-manage
 */
@Data
@ApiModel
public class UserModifyPasswordReq implements Serializable {
    private static final long serialVersionUID = -8830632590130640726L;

    /**
     * 原密码
     */
    @ApiModelProperty(value = "原密码")
    @NotBlank(message = "原密码不能为空")
    private String password;

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
}
